`timescale 1ns/1ns

module Key2LED_tb ();

reg sys_clk;
reg sys_rst_n;
reg [1:0] keys;
wire [1:0] led;

// system clock
always #10 sys_clk=~sys_clk;

initial begin
    sys_rst_n<=1'b0;
    sys_clk<=1'b0;
    keys<=2'b11;

    #50 sys_rst_n<=1'b1;
    #100 keys<=2'b01;
    #50 keys<=2'b11;
    #1000 keys<=2'b10;
    #50 keys<=2'b11;
end


// 100ns switch LED state
Key2LED #(.MaxCount(25'd5-25'd1)) u_Key2LED(
    .sys_clk(sys_clk),
    .sys_rst_n(sys_rst_n),
    .keys(keys),
    .led(led)
);
    
endmodule
